package cn.tedu.review;

public class TestBox {
    public static void main(String[] args) {
        Integer i1=new Integer(127);
        Integer i2=Integer.valueOf(127);
        Integer i3=127;
        Integer i11=300;
        Integer i22=300;



        System.out.println(i1==i2);//f
        System.out.println(i2==i3);//t
        System.out.println(i11==i22);//
        System.out.println(i1.equals(i2));//t
        System.out.println(i3.equals(i2));//t

        Double d1=new Double(2.55);
        Double d2=Double.valueOf(2.55);
        Double d3=2.55;

    }
}
